Header header

# event type
int32 KEY_PRESSED=1
int32 MOUSE_LEFT_UP=2
int32 MOUSE_LEFT_DOWN=3
int32 MOUSE_MOVE=4
int32 MOUSE_RIGHT_DOWN=5
int32 type

int32 key

# location of mouse
int32 x
int32 y

# size of image
int32 width
int32 height